-- ale
vim.cmd([[
  let g:ale_sign_column_always = 1
  let g:ale_sign_error = ''
  let g:ale_sign_warning = ''
  let g:ale_statusline_format = ['⨉ %d', '⚠ %d', '⬥ ok']
  let g:ale_echo_msg_error_str = 'E'
  let g:ale_echo_msg_warning_str = 'W'
  let g:ale_echo_msg_format = '[%linter%] %s [%severity%]'
  let g:ale_disable_lsp = 1
  let g:ale_set_loclist = 0
  " let g:ale_set_quickfix = 1
  " let g:ale_open_list = 1
  " let g:ale_keep_list_window_open = 1
]])

-- indentLine
vim.cmd([[
  let g:indentLine_color_term = 239
  let g:indentLine_setColors = 1
]])

-- others
vim.cmd([[
  let g:NERDSpaceDelims = 1
  augroup YourGroup
      autocmd!
      autocmd User ALELint call YourFunction()
  augroup END
]])

-- repeat
vim.cmd([[
  silent! call repeat#set("\<Plug>MyWonderfulMap", v:count)
]])

-- markdown
vim.cmd([[
  let g:nvim_markdown_preview_theme = 'solarized-light'
  let g:nvim_markdown_preview_format = 'markdown'
]])

-- translate
vim.cmd([[
  " let g:translator_default_engines
  let g:translator_window_type = 'preview'
  " Echo translation in the cmdline
  nmap <silent> <Leader>t <Plug>Translate
  vmap <silent> <Leader>t <Plug>TranslateV
  " Display translation in a window
  nmap <silent> <Leader>w <Plug>TranslateW
  vmap <silent> <Leader>w <Plug>TranslateWV
  " Replace the text with translation
  nmap <silent> <Leader>r <Plug>TranslateR
  vmap <silent> <Leader>r <Plug>TranslateRV
  " Translate the text in clipboard
  nmap <silent> <Leader>x <Plug>TranslateX
]])
